package com.lagou.entity;

/**
 *javabean类
 * id` int(11) NOT NULL AUTO_INCREMENT,
 *   `deptname` varchar(20) DEFAULT NULL,
 *
 */
public class Dept {
    private int id;
    private String deptname;
    public Dept(){}

    public Dept(int id, String deptname) {
        this.id = id;
        this.deptname = deptname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    @Override
    public String toString() {
        return "dept{" +
                "id=" + id +
                ", deptname='" + deptname + '\'' +
                '}';
    }
}
